SpatialStream® Code Examples

Adding Parcel Tile Layer

The most straight-forward way to add a Parcel Tile layer to a Leaflet map is by using the Leaflet API. The example
below shows how to add a SpatialStream® Parcel Tile layer using the addTo function.

GetMap

tiles = new L.tileLayer(Dmp.Env.Connections["SS"].getBaseUrl() + 'GetMap.aspx?layers=samplesite.dmp/ParcelTiles&z={
z
}&y={
y
}&x={
x
}&color=888888',
{

maxZoom: 19,
minZoom: 14,
id: 'samplesite.dmp/ParcelTiles'
}
).addTo(map);


Run Sample   Back To Index